package org.example.cloudalibaba.service.feign;

import org.example.springcloud.common.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("seata-storage-service")
public interface StorageService {
    @PostMapping("/storage/deduct")
    Result deduct(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}
